export const TCAPPID = '2081599705'

export const TokenKey = 'adminToken'
export const UserKey = 'userInfo'

export const mapKey = 'WfJR5vysHkMZYq4W64y32diDJPf0AcZi'

// 链接
export const linkReg = /^(https?:|mailto:|tel:)/

// 手机号
export const mobileReg = /^1[0-9]{10}$/

// 身份证
export const idCardReg = /(^\d{17}(\d|X|x)$)/

// 邮箱
export const emailReg = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/

// 两位小数
export const towPointReg = /^(0|([1-9]\d*))(\.\d{1,2})?$/

// 正整数
export const integerNumberReg = /^[1-9]\d*$/

// todo 模拟接口返回菜单权限
export const menuList = [
  {
    path: '/enterprise',
    title: '企业管理',
    icon: 'icon-qiyeguanli',
    children: [
      {
        path: '/enterprise/enterprise',
        title: '企业管理'
      },
      {
        path: '/enterprise/site',
        title: '网点管理'
      },
      {
        path: '/enterprise/industry',
        title: '行业管理'
      }
    ]
  },
  // {
  //   path: '/marketing',
  //   title: '营销管理',
  //   icon: 'icon-yingxiaoguanli',
  //   children: [
  //     {
  //       path: '/marketing/seckill',
  //       title: '秒杀设置'
  //     },
  //     {
  //       path: '/marketing/seckillProduct',
  //       title: '秒杀产品审核'
  //     }, {
  //       path: '/marketing/coupon',
  //       title: '优惠券管理'
  //     }
  //   ]
  // },
  {
    path: '/approve',
    title: '审核管理',
    icon: 'icon-shenheguanli',
    children: [
      {
        path: '/approve/enter',
        title: '入驻审核'
      }, {
        path: '/approve/ticket',
        title: '套票审核'
      }, {
        path: '/approve/product',
        title: '产品审核'
      }, {
        path: '/approve/shop',
        title: '店铺审核'
      }
    ]
  },
  {
    path: '/order',
    title: '订单管理',
    icon: 'icon-dingdanguanli',
    children: [
      {
        path: '/order/order',
        title: '订单列表'
      }
      // {
      //   path: '/order/settle',
      //   title: '结算管理'
      // }
      // {
      //   path: '/order/afterSaleOrder',
      //   title: '售后订单'
      // },
      // {
      //   path: '/order/cardSettle',
      //   title: '饭卡结算'
      // },
      // {
      //   path: '/order/consumeSettle',
      //   title: '消费金结算'
      // }
    ]
  },
  {
    path: '/content',
    title: '广告内容管理',
    icon: 'icon-guanggaoguanli',
    children: [
      {
        path: '/content/banner',
        title: 'banner广告'
      },
      {
        path: '/content/pop',
        title: '弹窗广告'
      },
      {
        path: '/content/notice',
        title: '公告管理'
      },
      {
        path: '/content/travel',
        title: '游记管理'
      }
    ]
  },
  // {
  //   path: '/service',
  //   title: '市民服务',
  //   icon: 'icon-shiminfuwu',
  //   children: [
  //     {
  //       path: '/service/parking',
  //       title: '停车管理'
  //     }
  //   ]
  // },
  {
    path: '/system',
    title: '系统管理',
    icon: 'icon-xitongguanli',
    children: [
      {
        path: '/system/user',
        title: '员工管理'
      },
      {
        path: '/system/department',
        title: '部门管理'
      },
      {
        path: '/system/role',
        title: '角色管理'
      },
      {
        path: '/system/category',
        title: '类目管理'
      },
      {
        path: '/system/frontCategory',
        title: '前台类目管理'
      },
      {
        path: '/system/agreement',
        title: '协议管理'
      }
      // {
      //   path: '/system/enum',
      //   title: '枚举字典'
      // }
    ]
  }
]

